<div class="w270 cpos_2 lg_border4" style="width:250px">
  <div class="color_ff0000 font18 mg10_2">Similar promotions</div>
  <?php foreach($relates as $promotion){ ?>
  <div class="boder_bottom_2">
    <div>
      <img width="240px" alt=""
           src="<?php echo site_url('admin/promotion_media/preview_promotion/' . $promotion['id']) ?>" />
    </div>
    <div class="font16 mg10">
      <a style="color: #E06704" href="<?php echo site_url('promotion/show/' . $promotion['id'] . '/' . str_nice_name($promotion['title'])) ?>">
                    <?php echo $promotion['title'] ?></a>
    </div>
  </div>
  <?php } ?>
  <?php echo $paging ?>
</div>
<div class="clearer"></div>